﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SerialStateManager.aspx.cs"
    Inherits="WebPubManager_SerialStateManager" %>

<%@ Register Src="../UserControls/Calendar.ascx" TagName="Calendar" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
    <title>业务状态管理</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <script type="text/jscript">
        //设置tabcontrol按钮的背景颜色
        function SetBackColor(varCtrl) {
            if (varCtrl == "0") {
                document.getElementById("td1").style.backgroundImage = "url(../images/top_button_05.gif)";
                document.getElementById("td2").style.backgroundImage = "url(../images/top_button_03.gif)";
            }
            else {
                document.getElementById("td1").style.backgroundImage = "url(../images/top_button_03.gif)";
                document.getElementById("td2").style.backgroundImage = "url(../images/top_button_05.gif)";
            }
        }
        function isIdCardNo() {
            var num = document.form1.txtIID.value;
            if (isNaN(num)) {
                alert("受理编号请输入数字！");
                document.form1.txtIID.value = "";
                return false;
            }
        }

        //打开业务详细信息 addby zhongjian 20091223
        function ViewInstance(Instance) {
            var strURL = "../QueryAndCollect/TaskProcessView.aspx?IID=" + Instance;
            window.open(strURL, 'viewer', "fullscreen=1,scrollbars=0;");
        }
        //
        function ViewInstanceFrm(Instance) {
            var strURL = "../office/viewworkflow.aspx?IID=" + Instance;
            window.location.href = strURL;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 99%; margin: 0px auto; text-align: center;">
        <table border="0" id="tabMenu">
            <tr>
                <td id="td1" runat="server" style="background-image: url(../images/top_button_05.gif);
                    background-repeat: no-repeat; text-align: center; height: 35px; width: 93px;">
                    <a href="SerialStateManager.aspx?flag=Remove">业务删除</a>
                </td>
                <td id="td2" runat="server" style="background-image: url(../images/top_button_03.gif);
                    background-repeat: no-repeat; text-align: center; height: 35px; width: 93px;">
                    <a href="SerialStateManager.aspx?flag=Recovery">业务恢复</a>
                </td>
            </tr>
        </table>
        <table class="tab" style="width: 100%">
            <tr>
                <td>
                    案件状态<asp:DropDownList ID="ddlStatus" runat="server" Width="100px">
                        <asp:ListItem Selected="True" Value="1">正在办理</asp:ListItem>
                        <asp:ListItem Value="2">已通过</asp:ListItem>
                        <asp:ListItem Value="-2">未通过</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    业务类型<asp:DropDownList ID="ddlControl" runat="server" Width="180px">
                    </asp:DropDownList>
                </td>
                <td>
                    接件时间(从)
                    <uc1:Calendar ID="txtdatebegin" runat="server" />
                    到:
                    <uc1:Calendar ID="txtdateend" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    受理编号<asp:TextBox ID="txtIID" runat="server" Width="100px"></asp:TextBox>
                </td>
                <td>
                    申请单位<asp:TextBox ID="txtName" runat="server" Width="180px"></asp:TextBox>
                </td>
                <td><asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" OnClientClick="isIdCardNo()" />
                </td>
            </tr>
        </table>
        <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True"
            Width="100%" SkinID="List" HideTextLength="20" AutoGenerateColumns="False" ShowCmpAndCancel="False"
            AllowOnMouseOverEvent="False" ShowItemNumber="True" AutoGenerateDeleteConfirm="True"
            ShowHideColModel="None" OnRowCreated="gridviewCar_RowCreated" OnOnLoadData="recvgrid_OnLoadData">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="受理编号">
                    <ItemTemplate>
                        <a href="#" onclick="ViewInstance('<%# Eval("iid")%>')">
                            <%# DataBinder.Eval(Container.DataItem, "iid")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="业务类型" DataField="业务类型" />
                <asp:BoundField HeaderText="申请单位" DataField="申请单位" />
                <asp:BoundField HeaderText="接件时间" DataField="接件时间" />
                <asp:BoundField HeaderText="案件状态" DataField="案件状态" />
                <asp:TemplateField HeaderText="操作" Visible="false">
                    <ItemTemplate>
                        <asp:HyperLink ID="hydel" runat="server" Text="删除" Visible="false"></asp:HyperLink>
                        <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" ToolTip='<%# Eval("iid")%>'
                            OnClientClick="return confirm('确定要删除该业务吗？')">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作" Visible="false">
                    <ItemTemplate>
                        <asp:HyperLink ID="hyRec" runat="server" Text="恢复" Visible="false"></asp:HyperLink>
                        <asp:LinkButton ID="lbtnRec" runat="server" OnClick="lbtnRec_Click" ToolTip='<%# Eval("iid")%>'
                            OnClientClick="return confirm('确定要恢复该业务吗？')">恢复</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
    </div>
    </form>
</body>
</html>
